<div class="modal fade " id="myPersonalCenter" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" th:fragment="upload_image">
	<div class="modal-dialog ">
		<div class="modal-content">
			<div class="modal-header bg-blue">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title  text-center" id="myModalLabel">个人信息中心</h4>
			</div>
			<div class="modal-body">
				<div class="box-body bg-gray">
					<form  id="uploadImageFile"  method="post" th:action="${#httpServletRequest.getContextPath()}+'/file/uploadEmpHeadImg'" enctype="multipart/form-data">
						<table class="table table-bordered table-striped ">
							<tbody>
								<tr>
									<td rowspan="3" width="50%">
									    <a th:if="${session.userLogin!=null && session.userLogin.empGender==0 }" target="_blank" th:href="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!='' }?${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002161228025511.jpg'}">
											<img th:if="${session.userLogin!=null && session.userLogin.empGender==0 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''}? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002161228025511.jpg'}" width="300px" height="300px" id="imagecheck" />
										</a>
										<a th:if="${session.userLogin!=null && session.userLogin.empGender==1 }" target="_blank" th:href="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!='' }?${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002115713622896.jpg'}">
										<img th:if="${session.userLogin!=null && session.userLogin.empGender==1 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''}?${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002115713622896.jpg'}" width="300px" height="300px" id="imagecheck" />
										</a>
									</td>
									<td class="text-left" width="50%" th:text="${session.userLogin!=null && session.userLogin.empUsername!=null && session.userLogin.empUsername!=''} ? '用户名：'+${session.userLogin.empUsername} : '用户名：------' "></td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empGenderView!=null && session.userLogin.empGenderView!=''} ? '性 &nbsp;&nbsp;&nbsp;别：'+${session.userLogin.empGenderView} : '性 &nbsp;&nbsp;&nbsp;别：------' "></td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empAge!=null && session.userLogin.empAge!=''} ? '年 &nbsp;&nbsp;&nbsp;龄：'+${session.userLogin.empAge}+'岁' : '年 &nbsp;&nbsp;&nbsp;龄：------' " ></td>
								</tr>
								<tr>
									<td class="text-left" colspan="2">
										<input type="hidden" name="falg" value="1" />
										<input type="file" id="inputFile" name="file" style="display: none"  /> 
										<input type="hidden" value="" disabled="disabled" id="inputFileAgent" />
										<input type="button" onclick="document.getElementById('inputFile').click()" value="更改头像" />&nbsp;&nbsp;&nbsp;&nbsp; 
										<span id="imgspan" style="color: red"></span>
									</td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empTele!=null && session.userLogin.empTele!='' && #strings.length(session.userLogin.empTele)>10 } ? '手机号：'+${#strings.replace(session.userLogin.empTele,#strings.substring(session.userLogin.empTele,3,7),'****')}:'手机号：------' " ></td>
									<td class="text-left"  th:text="${session.userLogin!=null && session.userLogin.empEmail!=null && session.userLogin.empEmail!=''} ? '邮 &nbsp;&nbsp;&nbsp;箱：'+${session.userLogin.empEmail} : '邮 &nbsp;&nbsp;&nbsp;箱：------' "></td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empName!=null && session.userLogin.empName!=''} ? '姓&nbsp;&nbsp;&nbsp;名：'+${session.userLogin.empName} : '姓&nbsp;&nbsp;&nbsp;名：------' " ></td>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empIdcard!=null && session.userLogin.empIdcard!='' && #strings.length(session.userLogin.empIdcard)>17 } ? '身份证：'+${#strings.replace(session.userLogin.empIdcard,#strings.substring(session.userLogin.empIdcard,3,14),'***********')}:'身份证：------' " ></td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empAddress!=null && session.userLogin.empAddress!='' } ? '现住址：'+${session.userLogin.empAddress} : '现住址：------' " ></td>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empBirthday!=null && session.userLogin.empBirthday!=''} ? '生&nbsp;&nbsp;&nbsp;日：'+${session.userLogin.empBirthday} : '生&nbsp;&nbsp;&nbsp;日：------' "></td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null} ? (${session.userLogin.department!=null && session.userLogin.department.depName!=null && session.userLogin.department.depName!=''} ? '所在部门：'+${session.userLogin.department.depName} :'所在部门：------'): '所在部门：------' " ></td>
									<td class="text-left" >
										担任职务：
										<span th:each="role,rolestar: ${session.userLogin!=null} ? ${session.userLogin.roleList} : '' " th:if="${rolestar.size!=1}">
											<font th:if="${rolestar.last==false}" th:text="${role!=null && role.roleName!=null}?${role.roleName}+','"></font>
											<font th:if="${rolestar.last}" th:text="${role!=null && role.roleName!=null}?${role.roleName}"></font>
										</span>
										<span th:each="role,rolestar: ${session.userLogin!=null} ? ${session.userLogin.roleList} : '' " th:if="${rolestar.size==1}">
											<font th:text="${role!=null && role.roleName!=null}?${role.roleName}:''"></font>
										</span>
									</td>
								</tr>
								<tr>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empDegree!=null && session.userLogin.empDegree!=''} ? '最高学历：'+${session.userLogin.empDegree}:'最高学历：------'"></td>
									<td class="text-left" th:text="${session.userLogin!=null && session.userLogin.empLastlogintimeView!=null && session.userLogin.empLastlogintimeView!=''} ? '最近登录：'+${session.userLogin.empLastlogintimeView}:'最近登录：------'"></td>
								</tr>
							</tbody>
						</table>
						<input type="hidden"  id="userId" name="userId" th:value="${(session.userLogin!=null && session.userLogin.empUuid!=null) ? session.userLogin.empUuid :'' }"/>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

<header class="main-header" th:fragment="loginAndLogout">
	<input type="hidden" name="shophosts" th:value="${#httpServletRequest.getContextPath()}"/>
	<a th:href="${#httpServletRequest.getContextPath()}+'/index'" class="logo">
		<span class="logo-mini"><b th:text="${#strings.substring(application.shop_name,0,2)}">鹿后</b></span>
		<span class="logo-lg"><b th:text="${application.shop_name}"></b></span>
	</a>
	<nav class="navbar navbar-static-top">
		<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
			<span class="sr-only">Toggle navigation</span>
		</a>
		<div class="navbar-custom-menu">
			<ul class="nav navbar-nav">
				<li class="dropdown user user-menu">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<img th:if="${session.userLogin!=null && session.userLogin.empGender==0 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002161228025511.jpg'}" class="user-image" alt="User Image" />
						<img th:if="${session.userLogin!=null && session.userLogin.empGender==1 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002115713622896.jpg'}" class="user-image" alt="User Image" />
						<span class="hidden-xs" th:text="${session.userLogin!=null} ? ${session.userLogin.empUsername} : '' "></span>
					</a>
					<ul class="dropdown-menu">
						<li class="user-header">
						  <img th:if="${session.userLogin!=null && session.userLogin.empGender==0 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002161228025511.jpg'}" class="img-circle" alt="User Image" />
						  <img th:if="${session.userLogin!=null && session.userLogin.empGender==1 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002115713622896.jpg'}" class="img-circle" alt="User Image" />
							<p>
								<span class="hidden-xs" th:text="${session.userLogin!=null} ? ${session.userLogin.empUsername}+'--- 欢迎您' : '' "></span>
								<small th:text="${session.userLogin!=null && session.userLogin.empLastlogintimeView!=null && session.userLogin.empLastlogintimeView!=''} ? '登录时间：'+${session.userLogin.empLastlogintimeView} : '登录时间：------' "></small>
							</p>
						</li>
						<li class="user-body">
							<div class="row">
								<div class="col-xs-12 text-left">
									<label for="userRole">部门：</label>
									<span class="hidden-xs" th:text="${session.userLogin!=null} ? (${session.userLogin.department!=null && session.userLogin.department.depName!=null && session.userLogin.department.depName!=''} ? ${session.userLogin.department.depName} :'------'): '------' "></span>
								</div>
							</div>
							<h6 class="page-header"></h6>
							<div class="row">
								<div class="col-xs-12 text-left">
								<label for="userRole">角色：</label>
								    <span th:if="${session.userLogin==null || session.userLogin.roleList==null}">------</span>
									<span th:each="role,rolestar:${session.userLogin!=null} ? ${session.userLogin.roleList} : '' " th:if="${rolestar.size!=1}">
										<font th:if="${rolestar.last==false}" th:text="${role!=null && role.roleName!=null} ? ${role.roleName}+',':''"></font>
										<font th:if="${rolestar.last}" th:text="${role!=null && role.roleName!=null && role.roleName!=''} ? ${role.roleName}:''"></font>
									</span>
									<span th:each="role,rolestar: ${session.userLogin!=null} ? ${session.userLogin.roleList} : '' " th:if="${rolestar.size==1}">
										<font th:text="${role!=null && role.roleName!=null}?${role.roleName}:''"></font>
									</span>
								</div>
							</div>
						</li>
						<li class="user-footer">
							<div class="pull-left">
								<button class="btn btn-block btn-warning btn-lg"
									>个人中心</button>
							</div>
							<div class="pull-right">
								<a href="javascript:void(0);" id="loginout" class="btn btn-block btn-danger btn-lg">注&nbsp;&nbsp;&nbsp;&nbsp;销</a>
							</div>
						</li>
					</ul>
				</li>
				<li>
					<a href="#" data-toggle="control-sidebar">
						<i class="fa fa-gears"></i>
					</a>
				</li>
			</ul>
		</div>
	</nav>
</header>

<aside class="main-sidebar" th:fragment="left_menu">
	<section class="sidebar">
		<div class="user-panel">
			<div class="pull-left image">
				<img th:if="${session.userLogin!=null && session.userLogin.empGender==0 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002161228025511.jpg'}" class="img-circle" alt="点击上传头像" data-toggle="modal" data-target="#myPersonalCenter" />
				<img th:if="${session.userLogin!=null && session.userLogin.empGender==1 }" th:src="@{${session.userLogin!=null && session.userLogin.empPictures!=null && session.userLogin.empPictures!=''} ? ${#strings.append(pathfile,session.userLogin.empPictures)}:'/admin_image/upload/2017122002115713622896.jpg'}" class="img-circle" alt="点击上传头像" data-toggle="modal" data-target="#myPersonalCenter" />
			</div>
			<div class="pull-left info">
				<p th:text="${session.userLogin!=null} ? ${session.userLogin.empUsername} : '' "></p>
				<a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
			</div>
		</div>
		<ul class="sidebar-menu" data-widget="tree">
			<li class="header">
				<i class="fa fa-television"></i>
				<font style="color: red; size: 1">系统菜单</font>
			</li>
			<li class=" treeview" th:each="menu,menustar : ${session.allMenus!=null}?${session.allMenus}:''">
				<a href="#">
					<i th:class="${menu.menuClasstype}"></i>
					<span th:text="${menu.menuName}"></span>
					<span class="pull-right-container">
						<i class="fa fa-angle-left pull-right"></i>
					</span>
				</a>
				<ul class="treeview-menu">
					<li th:each="menu,menustar : ${menu.mpList}" th:id="${menu.menuUuid}">
						<a th:href="@{${menu.menuUrl}(menuUuid=${menu.menuUuid})}">
							<i th:class="${menu.menuClasstype}" th:text="'&nbsp;&nbsp;'+${menu.menuName}"></i>
						</a>
					</li>
				</ul>
			</li>
		</ul>
	</section>
</aside>

<footer class="main-footer" th:fragment="down_foot">
   <div class="pull-right hidden-xs">
     	<b>版本</b> <font color="red" size="3">2.0.1</font>
   </div>
   <strong>版权 &copy; 2017-2018 <a href="#">廖先生</a>.</strong> 个人所有权（不得用来利益交易，仅供学习）
</footer>
 
<aside class="control-sidebar control-sidebar-dark" th:fragment="down_sidebar">
   <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
     <li>
      <a href="#control-sidebar-home-tab" data-toggle="tab">
     	 <i class="fa fa-home"></i>
      </a>
     </li>
   </ul>
   <div class="tab-content">
     <div class="tab-pane" id="control-sidebar-home-tab">
     </div>
   </div>
</aside>

<div class="hidden" id="errorMessageAll" th:fragment="error_message" th:if="${dataBean!=null && dataBean.errorMessageNumber>0}" >
	<input id="popuperrorMessage" th:value="${dataBean.popuperrorMessage}" />
	<input id="errorMessageNumber" th:value="${dataBean.errorMessageNumber}" />
	<input th:each="errorMessage,userStat:${dataBean!=null && dataBean.errorMessageNumber>0}?${dataBean.errorMessageMap}:''" name="messages"  th:id="${errorMessage.key}" th:value="${errorMessage.value}" type="hidden">
</div>
